Check whether a string is a pangram or not¶
Write a python function to check whether
a string is a pangram or not.
Note :
Pangrams are words or sentences containing
every letter of the alphabet at least once.
For example :
“The quick brown fox jumps over the lazy dog”
import string, sys
def ispangram(S, alphabet=string.ascii_lowercase):
alphaset = set(alphabet)
return alphaset <= set(S.lower())
# test
S = 'The quick brown fox jumps over the lazy dog'
print (ispangram(S)) # True